package com.ivc.info.action;

import java.util.List;

import javax.annotation.Resource;

import com.cs.framework.ui.bo.UIData;
import com.cs.framework.web.annotation.Action;
import com.cs.framework.web.annotation.Mapping;
import com.cs.framework.web.handler.Web;
import com.ivc.info.dto.base.StockDetailDto;
import com.ivc.info.service.StockDetailService;

/**
 * 库存明细
 * 
 * @author hedongzhou
 * 
 */
@Action("stockDetail")
public class StockDetailAction {

	@Resource
	private StockDetailService stockDetailService;

	/**
	 * 查询库存明细
	 */
	@Mapping
	public Object query() {
		StockDetailDto stockDetailDto = Web.bind(StockDetailDto.class);

		List<StockDetailDto> list = stockDetailService.query(stockDetailDto);
		int count = stockDetailService.count(stockDetailDto);

		return new UIData(list, count);
	}

}
